<html xmlns:concordion="http://www.concordion.org/2007/concordion">
    <head>
        <link href="../../../concordion.css" rel="stylesheet" type="text/css" />
    </head>
    <body>

        <h1>Connection Pool - Upper Limit</h1>
    
        <p>
            The pool must support an upper limit on connections.
            When all the connections are in active use, the calling 
            thread blocks until a connection is returned.
        </p>
        
        <div class="example">
        
            <p>
                A pool with a max size of <span concordion:set="#poolSize">3</span> connections is created.  
                <span concordion:set="#threads">20</span> threads actively attempt to check out connections from the pool.
            </p>
            
            <p>
                All of them are able to get connections, but the maximum
                number of connections open at any given time never exceeds
                <span concordion:assertEquals="checkoutConnectionsWithThreadsAndGetMaxConnCount(#poolSize, #threads)">3</span>.
            </p>
        </div>

    </body>
</html>